package org.learn.java.observ.watch;

import java.util.Observable;
import java.util.Observer;

public class Watcher implements Observer {
	private Watched watched;

	public void update(Observable o, Object arg) {
		
		watched = (Watched) o;
		System.out.println("name:"+watched.getName());
	}

}
